package cn.liulingfengyu.structuralpattern.decoratorpattern;

/**
 * 具体装饰器B
 */
public class ConcreteDecoratorB extends Decorator {
    public ConcreteDecoratorB(Component component) {
        super(component);
    }

    @Override
    public void operation() {
        super.operation();
        addedBehaviorB();
    }

    private void addedBehaviorB() {
        System.out.println("具体装饰器B的附加行为");
    }
}